#指定基础镜像
FROM openjdk:8-jdk-alpine
#工作目录
WORKDIR /fine-monitor
#参数命令
ARG JAR_FILE=./target/fine-monitor.jar
#拷贝文件
COPY ${JAR_FILE} fine-monitor.jar
#暴漏端口
EXPOSE 9111
#环境变量
ENV TZ=Asia/Shanghai JAVA_OPTS="-Djava.security.egd=file:/dev/./urandom"
#启动
ENTRYPOINT["java","${JAVA_OPTS}","-jar","/fine-monitor.jar","&"]